package com.mju.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mju.pojo.RefundInfo;

public interface IRefundInfoService {
    /**
     * 新建退款信息
     * @param oid
     * @param reason 留言
     * @return
     */
    RefundInfo createrRefundByOrder(Integer oid, String reason);

    /**
     * 更新退款信息
     * @param refundNo
     * @param content
     * @param refundStatus
     */
    void updateRefund(String refundNo, String tradeNo, String content, String refundStatus);

    /**
     * 无条件查询退款信息
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<RefundInfo> queryAllRefundInfo(Integer currentPage, Integer pageSize);

    /**
     * 条件查询退款信息
     * @param currentPage
     * @param pageSize
     * @param refundInfo
     * @return
     */
    IPage<RefundInfo> conQueryAllRefundInfo(Integer currentPage, Integer pageSize, RefundInfo refundInfo);
}
